
import 'package:json_annotation/json_annotation.dart';

// flutter packages pub run build_runner build

part 'user.g.dart';

@JsonSerializable()

class User{
  final String name;
  final String email;

  User(this.name, this.email);

  factory User.fromJson(Map<String, dynamic> json) => _$UserFromJson(json);

  Map<String, dynamic> tiJson() => _$UserToJson(this);
}